<!-- 三处广告管理-编辑 -->
<div bsModal #editThreeAd="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title pull-left">编辑广告</h4>
        <button type="button" class="close pull-right" (click)="editThreeAd.hide()" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <div class="modal-line">
          <span style="color: red;">*</span>
          <span class="modal-line-title">名称</span>
          <input type="text" required class="form-control inp" [(ngModel)]="edit.adName">
        </div>
        <div class="modal-line">
          <span style="color: red;">*</span>
          <span class="modal-line-title">图片标签</span>
          <button class="action-btn" (click)="openEditModal()">从图片库选择</button>
          <span>或</span>
          <a class="action-btn">浏览
           <input type="file" ng2FileSelect class="inputFile" [uploader]="uploader" id="threeAdEdit" (change)="selectedFileOnChanged($event)" >
          </a>
          <button class="action-btn" (click)="uploadFile(uploader.queue[0])">上传</button>
          <input type="hidden" class="form-control inp" readonly [(ngModel)]="edit.imageId">
        </div>
        <div class="modal-line">
          <span style="opacity: 0;">*</span>  
          <span class="modal-line-title">跳转链接</span>
          <input type="text" required class="form-control inp" [(ngModel)]="edit.url">
        </div>
        <div class="modal-line">
          <span style="color: red;">*</span>
          <span class="modal-line-title">位置</span>
          <select name="" id="" class="form-control inp sel" [(ngModel)]="edit.type">
            <option value="{{option.id}}" *ngFor="let option of options">{{option.name}}</option>
          </select>
        </div>
        <div class="modal-line">
          <span style="opacity: 0;">*</span>
          <span class="modal-line-title"></span>
          <button class="confirm-btn  modal-line-add" (click)="EditListItem()">保存</button>
        </div>
      </div>
    </div>
  </div>
</div>

  <app-select-image-edit #selectImageEdit></app-select-image-edit>


